//app.js
App({
  onLaunch: function () {
    var that=this;
    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })

    wx.getUserInfo({
      success: function (res) {
        that.globalData.userInfo = res.userInfo;
      },
      fail: function () {
        // fail
        console.log("获取失败！")
      },
      complete: function () {
        // complete
        // console.log("获取用户信息完成！")
      }
    })
  },
  globalData: {
    userInfo: null,
    apiUrl:"https://wxapi.hotapp.cn/proxy/?appkey=hotapp11377340&url=http://119.29.8.199/aoqianwx/aoqianwxapi/public",
    resourceUrl: "http://119.29.8.199/aoqianwx/aoqianAdmin/"
  }
})